Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

292
Visualizações
Export Excel file as HTML [preferably via VBA]

So it was finally time for me to sign up here.. (:

I need to export an Excel file or preferrably a part of it to a newly created HTML file. Using VBA and PublishObjects.Add I have an export. However cells containing following special characters < > " turn out as &lt; &gt; &amp; in that HTML file. I don't want that. I would like to execute JavaScript contained in cells in the HTML file! It is just alerts (for now).

Is there a way to prevent special characters from being translated as shown above?

I could use VBA and open the HTML as text file to replace characters but I think its not a reliable solution. I probably need more than alerts in the future which would further complicate things (edit HTML header, add more complex scripts etc.). Are there better ways to export my file as HTML and include/ add JavaScript?

I tried different VBA tools from the web to have more control over HTML creation but none of them provided a good copy of my file. The file is rather complex.

The solution needs to be automated. Thanks for any suggestions!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda